package cn.hwl.springframework.beans.factory;

import cn.hwl.springframework.beans.BeansException;

import java.util.Map;

/**
 * @author :  HuangWL
 * @date :    2022/4/27 15:25
 */
public interface ListableBeanFactory extends BeanFactory {

    /**
     * 按照类型返回bean实例
     *
     */
    <T> Map<String,T> getBeansOfType(Class<T> type) throws BeansException;

    /**
     * Return the names of all beans defined in this registry.
     *
     * 返回注册表中所有的Bean名称
     */
    String[] getBeanDefinitionNames();
}
